<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// 扩展默认模块配置
if($configinfo['configmodule'] == "list")
{
	include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/article.php');
	if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/pc/article.php');
	if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/mobile/article.php');
	if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/xcx/article.php');
}
if($configinfo['configmodule'] == "detail")
{
	include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/article_detail.php');
	if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/pc/article_detail.php');
	if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/mobile/article_detail.php');
	if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/article/xcx/article_detail.php');
}

// 扩展公用模块配置
include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/includes/configcommon.fun.php');
include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/configcommon.php');
if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/pc/configcommon.php');
if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/mobile/configcommon.php');
if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/xcx/configcommon.php');

// 扩展其它模块配置
if($configinfo['configmodule'] == "list")
{
	if($modulenamedir && $modulenamefile)
	{
		include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/'.$modulenamefile.'.php');
		if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/pc/'.$modulenamefile.'.php');
		if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/mobile/'.$modulenamefile.'.php');
		if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/xcx/'.$modulenamefile.'.php');
	}
	$parametersmarty = getparametersmarty($topid);
	// 新增配置切换模板
	if(isset($configinfo['smartyok']) && isset($configinfo['smartyname']))
	{
		if($configinfo['smartyok'] == 1)
		{
			$parametersmarty = $configinfo['smartyname'];
		}
	}
}
if($configinfo['configmodule'] == "detail")
{
	if($modulenamedir && $modulenamefile)
	{
		include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/'.$modulenamefile.'_detail.php');
		if($configinfo['modulepara'] == 'pc')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/pc/'.$modulenamefile.'_detail.php');
		if($configinfo['modulepara'] == 'mobile')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/mobile/'.$modulenamefile.'_detail.php');
		if($configinfo['modulepara'] == 'xcx')include_once(MODULEPARA_PATH.'/configmodule/configmodule/module/'.$modulenamedir.'/xcx/'.$modulenamefile.'_detail.php');
	}
	$parametersmarty = getparametersmarty($topid, 'detail');
	// 新增配置切换模板
	if(isset($configinfo['smartyok']) && isset($configinfo['smartyname']))
	{
		if($configinfo['smartyok'] == 1)
		{
			$parametersmarty = $configinfo['smartyname'];
		}
	}
}
?>